﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_26_2021
{
    class SGMW : Car, IDiving, IFly
    {
        public SGMW(string brand,string type):base(brand,type)
        {
            this.Brand = brand;
            this.Type = type;
        }
        public void Diving()
        {
            Console.WriteLine("一辆品牌是{0}型号是{1}的车在潜水", this.Brand, this.Type);
        }

        public void Fly()
        {
            Console.WriteLine("一辆品牌是{0}型号是{1}的车在飞", this.Brand, this.Type);
        }
    }
}
